package com.ak.game.handler;


import org.springframework.beans.factory.InitializingBean;

/**
 * 游戏抽象类
 */
public abstract class GameAbstractHandler implements InitializingBean {

    /**
     * 保存游戏记录
     * @throws Exception
     */
    public void gameResultRecord(Object game) throws Exception {
        throw new UnsupportedOperationException();
    }

    /**
     * 用户下注
     * @throws Exception
     */
    public boolean userBetting(Object data, Object game) throws Exception {
        throw new UnsupportedOperationException();
    }

    /**
     * 用户登录
     * @throws Exception
     */
    public boolean loginIn(Object data) throws Exception {
        throw new UnsupportedOperationException();
    }

    /**
     * 用户退出登录
     * @throws Exception
     */
    public void loginOut() throws Exception {
        throw new UnsupportedOperationException();
    }

    /**
     * 单个用户对局结果
     * @throws Exception
     */
    public void userResultRecord(Object data, Object game) throws Exception {
        throw new UnsupportedOperationException();
    }
}
